from django.urls import path
from insight import views

app_name = 'insight'

urlpatterns = [
    # 主页
    path('', views.main_index, name='insight_home'),
    # 特征工程
    path('feature/', views.feature_index, name="feature_index"),
    # 换电站
    path('station/', views.station_index, name='station_index'),
    path('station/<str:station_id>/', views.station_view, name="station_view"),
    # 换电服务记录
    path('swap_service/<str:station_id>/', views.swap_service, name="swap_service"),
    # 换电过程特征
    path('service_feature/<str:order_sn>/', views.service_feature, name="service_feature"),
    # 换电特征曲线
    path('service_feature_line/<str:station_id>/<str:physical_quantity>/<str:statistical_method>/',
         views.service_feature_line, name="service_feature_line"),
    path('daily_feature_line/<str:station_id>/<str:physical_quantity>/<str:statistical_method>/',
         views.daily_feature_line, name="daily_feature_line"),
    # 故障预测记录
    path('fault_predict/', views.fault_prediction_index, name="fault_prediction"),
    path('fault_prediction_view/<int:prediction_id>/', views.fault_prediction_view, name="fault_prediction_view"),
]